package web

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/hero"
	"iris_blog/controller/web"
)

func Article(party iris.Party) {
	article := party.Party("/article")
	serve := web.Article{}
	article.Get("/", hero.Handler(serve.GetAll))
	article.Get("/{id}", hero.Handler(serve.GetObjectId))
	article.Get("/getTen",hero.Handler(serve.GetTen))
}